Closed
Bug 1334795
Opened 8 years ago
Closed 8 years ago
nsWindow.cpp: redundant return statement at the end of a function with a void return type
Categories
(Core :: Widget: Gtk, defect, P5)
Core
Widget: Gtk
Tracking
()
RESOLVED
FIXED
mozilla55
People
(Reporter: Sylvestre, Assigned: nitishplus98, Mentored)
References
(Blocks 1 open bug)
Details
(Keywords: good-first-bug, Whiteboard: [lang=C++][tpi:+])
Attachments
(1 file)
This is a very easy good first bug for a beginner.
The following return; declarations are useless as we are at the end of the function/method
https://dxr.mozilla.org/mozilla-central/source/widget/gtk/nsWindow.cpp?q=widget%2Fgtk%2FnsWindow.cpp&redirect_type=direct#1134
https://dxr.mozilla.org/mozilla-central/source/widget/gtk/nsWindow.cpp?q=widget%2Fgtk%2FnsWindow.cpp&redirect_type=direct#1164
Reporter | ||
Updated•8 years ago
|
Keywords: good-first-bug
Whiteboard: [good first bug][lang=C++] → [lang=C++]
Comment hidden (mozreview-request) |
Reporter | ||
Comment 2•8 years ago
|
||
Comment on attachment 8831514 [details]
Bug 1334795 - nsWindow.cpp: remove two redundant return statements at the ends of functions with void return type.
Good work, now please find a reviewer:
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Introduction#Step_4_-_Get_your_code_reviewed
Attachment #8831514 -
Flags: feedback+
Reporter | ||
Updated•8 years ago
|
Assignee: nobody → nitishplus98
Thanks for assigning the bug.
Will you be willing to review it if I add you as a reviewer?
Reporter | ||
Comment 4•8 years ago
|
||
You need to find a component owner:
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Introduction#Step_4_-_Get_your_code_reviewed
Attachment #8831514 -
Flags: review?(karlt)
Comment 5•8 years ago
|
||
mozreview-review |
Comment on attachment 8831514 [details]
Bug 1334795 - nsWindow.cpp: remove two redundant return statements at the ends of functions with void return type.
https://reviewboard.mozilla.org/r/108070/#review111778
::: widget/gtk/nsWindow.cpp
(Diff revision 1)
>
> if (mIsTopLevel || mListenForResizes) {
> DispatchResized();
> }
> -
> - return;
> removed two redundant return statements at the end of a function with a void return type
Please use imperative mood instead of indicative, and make "end" and "function" plural.
"remove two redundant return statements at the ends of functions with void return type"
Attachment #8831514 -
Flags: review?(karlt) → review+
Comment hidden (mozreview-request) |
Attachment #8831514 -
Flags: review?(karlt)
![]() |
||
Updated•8 years ago
|
Priority: -- → P5
Whiteboard: [lang=C++] → [lang=C++][tpi:+]
Comment 7•8 years ago
|
||
Comment on attachment 8831514 [details]
Bug 1334795 - nsWindow.cpp: remove two redundant return statements at the ends of functions with void return type.
I don't know why mozreview removed the f+ and r+, sorry.
Attachment #8831514 -
Flags: review?(karlt) → review+
Comment 8•8 years ago
|
||
Hello I am a new developer.Can I work on this bug?
Reporter | ||
Comment 9•8 years ago
|
||
noise |
Sorry but someone has been working on this already.
Assignee | ||
Comment 10•8 years ago
|
||
noise |
Is there anything else to do, like adding tests?
Reporter | ||
Comment 11•8 years ago
|
||
You should mark Karl's comment as "Fixed" in the review:
https://reviewboard.mozilla.org/r/108070/#issue-summary
Then, either do:
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Introduction#Step_6_-_Actually_get_the_code_into_the_tree
Or ask me to land it for you through mozreview & autoland (I cannot do it for you as you haven't closed the review)
Assignee | ||
Comment 12•8 years ago
|
||
Marked the comment as "Fixed". A small query,is the marking done to ensure that the person working on it has fixed the reopened issue?
Comment 13•8 years ago
|
||
Pushed by sledru@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9e21c2dc1b0d
nsWindow.cpp: remove two redundant return statements at the ends of functions with void return type. r=karlt
Comment 14•8 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Updated•8 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•